import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import 'vant/lib/index.css';

const rootValue = 16
const rootWidth  = 390
const deviceWidth = document.documentElement.clientWidth
const scale = deviceWidth / rootWidth
document.documentElement.style.fontSize = rootValue * scale + 'px'

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')
